package main

import "fmt"

// Author : CSR丶WARRIOR
// Time ： 2020/10/13  10:17
// TOOLS : GoLand
// FILENAME : initArray.go
// STATEMENT: 数组初始化

func main() {
	/*var num [4]int = [4]int{}
	num[0] = 11
	num[2] = 15
	fmt.Println(num) //[11 0 15 0]*/

	arr := [...]int{5, 6, 7, 8}
	fmt.Println(len(arr)) //4

	var arr1 = [...]int{1, 2, 3, 4}
	fmt.Println(len(arr1)) //4

}
